package com.szbmyoubao.app.http

import com.szbmyoubao.app.bean.response.AppInfoResponse
import com.ellecity06.common.http.entity.ApiResponse
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

/**
 * @author ellecity06
 * @time 2025/4/7 16:17
 * @des 测试接口服务
 */
interface DebugService {
    /**
     * 查询app信息
     */
    @FormUrlEncoded
    @POST("apiv2/app/getByShortcut")
    suspend fun getByShortcut(
        @Field("_api_key") apiKey: String= ServerConfig.pgyerApiKey,
        @Field("buildShortcutUrl") buildShortcutUrl: String?
    ): ApiResponse<AppInfoResponse?>
    /**
     * 查询app信息
     */
    @FormUrlEncoded
    @POST("apiv2/app/view")
    suspend fun getByAppKey(
        @Field("_api_key") apiKey: String= ServerConfig.pgyerApiKey,
        @Field("appKey") appKey: String?,
        @Field("buildKey") buildKey: String?
    ): ApiResponse<AppInfoResponse?>
}